package cn.wolfcode.domain;

import com.alibaba.druid.support.json.JSONUtils;
import com.alibaba.fastjson.JSON;
import lombok.Data;

@Data
public class Department {

    private Long id;

    private String name;

    private String sn;

    public Department(){}
    public Department(Long id, String name, String sn) {
        this.id = id;
        this.name = name;
        this.sn = sn;
    }

    public String toJSON(){
        return JSON.toJSONString(this);
    }
}